<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const person = {
            name:"张三",
            skill:function(){
                console.log(this);
            },
            // 将头函数不会自动绑定当前对象
            say:()=>{
                console.log("你好"+this.name);
                console.log(this);
            },
            // 简写
            play(){
                console.log("玩耍把"+this.name);
            }
        }
        
        person.skill();
        person.say();
        person.play();
    </script>
</body>
</html>